#ifndef _NODE_HPP_20120612
#define _NODE_HPP_20120612

#include <stdint.h>
#include <string.h>

struct Node
{
	uint64_t _ip;
	uint32_t _port;
	uint16_t _load;

	Node() { memset(this, 0, sizeof(*this)); }
};

inline bool operator == (const Node & lhs, const Node & rhs)
{
	return ((lhs._ip == rhs._ip) && (lhs._port == rhs._port));
}

inline bool operator != (const Node & lhs, const Node & rhs)
{
	return !(lhs == rhs);
}

#endif

